package com.wanxi.method;

public class PrintOuShu {
    public static void main(String[] args) {
        int start = 1;
        int end = 10;
        printOuShu(start, end);
    }

    public static void printOuShu(int start, int end) {
        for (int i = start; i <= end; i++) {
            if (i % 2 == 0) {
                System.out.println(i + "这个是偶数");
            }
        }
    }
}
